import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
//import VCharts from 'v-charts'
import 'element-ui/lib/theme-chalk/index.css';

import VueAMap from 'vue-amap';

import VueRulerTool from 'vue-ruler-tool'

Vue.component('vue-ruler-tool', VueRulerTool)

// 初始化vue-amap
VueAMap.initAMapApiLoader({
  // 高德的key
  key: '23927a2282de2e1856e9a8893524c4ae',
  // 插件集合
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.DistrictSearch', 'AMap.MouseTool'],
  // 高德 sdk 版本，默认为 1.4.4
  v: '1.4.15'
});

Vue.use(VueAMap);
Vue.use(ElementUI);
//Vue.use(VCharts)

import VueDraggableResizable from 'vue-draggable-resizable-gorkys'

// optionally import default styles
import 'vue-draggable-resizable-gorkys/dist/VueDraggableResizable.css'

Vue.component('vue-draggable-resizable', VueDraggableResizable)

import { Drag, Drop } from 'vue-drag-drop';

Vue.component('drag', Drag);
Vue.component('drop', Drop);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
